<!--
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改租户管理')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <input name="projects" id="projects" type="hidden" th:value="${projects}">
        <form class="form-horizontal m" id="form-tenant-edit" th:object="${tenantInfo}">
            <input name="tenantId" th:field="*{tenantId}" type="hidden" required>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">租户名称或单位：</label>
                <div class="col-sm-8">
                    <input name="tenantName" th:field="*{tenantName}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">租户楼层：</label>
                <div class="col-sm-8">
                    <input name="tenantFloor" th:field="*{tenantFloor}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">租户面积(平方米)：</label>
                <div class="col-sm-8">
                    <input name="tenantArea" th:field="*{tenantArea}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">租赁开始时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="tenantTime" th:value="${#dates.format(tenantInfo.tenantTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text" required>
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">租赁到期时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="tenantEndTime" th:value="${#dates.format(tenantInfo.tenantEndTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text" required>
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
&lt;!&ndash;            <div class="form-group">    &ndash;&gt;
&lt;!&ndash;                <label class="col-sm-3 control-label is-required">租赁期限：</label>&ndash;&gt;
&lt;!&ndash;                <div class="col-sm-8">&ndash;&gt;
&lt;!&ndash;                    <input name="tenantTerm" th:field="*{tenantTerm}" class="form-control" type="text" required>&ndash;&gt;
&lt;!&ndash;                </div>&ndash;&gt;
&lt;!&ndash;            </div>&ndash;&gt;
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required" >状态：</label>
                <div class="col-sm-8">
                    <div class="radio-box is-required">
                        <label class="radio-box"> <input type="radio"  name="tenantStatus" value="0" /> 正常 </label>
                        <label class="radio-box"> <input type="radio"  name="tenantStatus" value="1" /> 临期 </label>
                        <label class="radio-box"> <input type="radio"  name="tenantStatus" value="2" /> 到期 </label>
                        <label class="radio-box"> <input type="radio"  name="tenantStatus" value="3" /> 异常 </label>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">分配项目：</label>
                <div class="col-sm-8">
                    <select name="projectId" id="projectId" class="form-control m-b"  >
                        <option th:each="SysProject:${projects}" th:text="${SysProject.projectName}" th:value="${SysProject.projectId}" th:field="*{projectId}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">备注：</label>
                <div class="col-sm-8">
                    <textarea name="remark" class="form-control">[[*{remark}]]</textarea>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "property/tenant";
        $("#form-tenant-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-tenant-edit').serialize());
            }
        }

        $("input[name='tenantTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='tenantEndTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>-->
